//
//  Thirdlub_Discussion2TableViewCell.m
//  Project_B
//
//  Created by dllo on 15/11/27.
//  Copyright © 2015年 张闯. All rights reserved.
//

#import "Thirdlub_Discussion2TableViewCell.h"

@interface Thirdlub_Discussion2TableViewCell ()
@property (nonatomic, retain) UIImageView *topImage;
@property (nonatomic, retain) UILabel *title;
@end

@implementation Thirdlub_Discussion2TableViewCell

#pragma mark - 初始化
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {

        self.title = [[UILabel alloc] init];
        [self.contentView addSubview:self.title];
        
    }
    return self;
}
#pragma mark - 布局
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.title.frame = CGRectMake(10, 5, self.contentView.frame.size.width, 40);
    self.title.font = [UIFont systemFontOfSize:15];
    self.title.textColor = [UIColor grayColor];
}
#pragma mark - 赋值
- (void)setDic:(NSDictionary *)dic
{
    self.title.text = dic[@"title"];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
